package com.ruoyi.system.service.impl;

import com.ruoyi.common.constant.UserConstants;
import com.ruoyi.common.core.text.Convert;
import com.ruoyi.common.utils.StringUtils;
import com.ruoyi.system.domain.SysDevice;
import com.ruoyi.system.domain.SysOrder;
import com.ruoyi.system.mapper.SysDeviceMapper;
import com.ruoyi.system.mapper.SysOrderMapper;
import com.ruoyi.system.service.ISysDeviceService;
import com.ruoyi.system.service.ISysOrderService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.Date;
import java.util.List;

/**
 * 角色信息表(SysDevice)表服务实现类
 *
 * @author makejava
 * @since 2022-03-16 10:44:32
 */
@Service
public class SysOrderServiceImpl implements ISysOrderService {

    @Resource
    private SysOrderMapper sysOrderMapper;


    @Override
    public List<SysOrder> selectDeviceList(SysOrder sysOrder) {
        return sysOrderMapper.queryAll(sysOrder);
    }

    @Override
    public SysOrder selectOrderById(Long orderId) {
        return sysOrderMapper.queryById(orderId);
    }

    @Override
    public SysOrder selectOrderByOrderCode(String orderCode) {
        return sysOrderMapper.queryByOrderCode(orderCode);
    }

    @Override
    public void update(SysOrder order) {
        sysOrderMapper.update(order);
    }
}
